

<?php
	$top_id = top_parent(cat_id());
	$top_cat_info  = id2category($top_id);
	$current_cat_info  = id2category(cat_id());
    $product_level2 = get_category($top_id );
?>

<ul id="left-nav">
    <li class="title">
        <i class="earth"></i><b><?php echo getLangByKey($language,$top_cat_info['cat_name']); ?></b>
    </li>
	<?php foreach($product_level2 as $one_pro_cat ) { 
		$url = U('Content/lists',array('cat_id'=>$one_pro_cat['category_id']));
		if($one_pro_cat['category_id']==13){
			$sub_list = cat2article($one_pro_cat['category_id'],$is_all=1,$num=2,$order='sub_id asc');
			$url = U('Content/show',array('cat_id'=>$sub_list['lists'][0]['cat_id'],'id'=>$sub_list['lists'][0]['sub_id']));
		}
	?>

    <li class="<?php if(cat_id()==$one_pro_cat['category_id']) {echo 'active';} ?>">
		
	
	<a href="{$url}"><?php echo getLangByKey($language,$one_pro_cat['cat_name']); ?><span class="iconfont">&#xe6dd;</span></a>
	
	</li>

	<?php } ?>

</ul>
